home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / unix / mp14tar.z / mp14tar / mpack / amiga_protos.h next >
C/C++ Source or Header  |  1994-06-01  |  6KB  |  208 lines

  1. /* Prototypes for functions defined in
  2. amigapk.c
  3.  */
  4.  
  5. extern struct NetSupportLibrary * NetSupportBase;
  6.  
  7. void FreeSystem(void);
  8.  
  9. int main(int , unsigned char ** );
  10.  
  11. void post(unsigned char * , unsigned char * );
  12.  
  13. void warn(unsigned char * );
  14.  
  15. /* Prototypes for functions defined in
  16. encode.c
  17.  */
  18.  
  19. int encode(struct __iobuf * , struct __iobuf * , unsigned char * , struct __iobuf * , unsigned char * , unsigned char * , long , unsigned char * , unsigned char * );
  20.  
  21. /* Prototypes for functions defined in
  22. codes.c
  23.  */
  24.  
  25. int to64(struct __iobuf * , struct __iobuf * , long );
  26.  
  27. void output64chunk(int , int , int , int , struct __iobuf * );
  28.  
  29. int PendingBoundary(unsigned char * , unsigned char ** , int * );
  30.  
  31. void from64(struct __iobuf * , struct __iobuf * , unsigned char ** , int , unsigned char ** , int * );
  32.  
  33. void fromqp(struct __iobuf * , struct __iobuf * , unsigned char ** , unsigned char ** , int * );
  34.  
  35. void fromnone(struct __iobuf * , struct __iobuf * , unsigned char ** , unsigned char ** , int * );
  36.  
  37. unsigned char * md5digest(struct __iobuf * , long * );
  38.  
  39. /* Prototypes for functions defined in
  40. magic.c
  41.  */
  42.  
  43. unsigned char * magic_look(struct __iobuf * infile);
  44.  
  45. /* Prototypes for functions defined in
  46. amigados.c
  47.  */
  48.  
  49. extern int overwrite_files;
  50.  
  51. extern int __buffsize;
  52.  
  53. extern int didchat;
  54.  
  55. unsigned char * os_genid(void);
  56.  
  57. unsigned char * os_idtodir(unsigned char * );
  58.  
  59. void os_donewithdir(unsigned char * );
  60.  
  61. struct __iobuf * os_newtypedfile(unsigned char * , unsigned char * , int );
  62.  
  63. void os_warnMD5mismatch(void);
  64.  
  65. void os_perror(unsigned char * );
  66.  
  67. unsigned char * __getenv(unsigned char const * );
  68.  
  69. unsigned char * myGetConfig(unsigned char * , unsigned char * );
  70.  
  71. int os_binhex(struct __iobuf *, int, int);
  72.  
  73. int os_closetypedfile(struct __iobuf * );
  74.  
  75. /* Prototypes for functions defined in
  76. string.c
  77.  */
  78.  
  79. int cistrcmp(register unsigned char * s1,
  80.              register unsigned char * s2);
  81.  
  82. int cistrncmp(register unsigned char * s1,
  83.               register unsigned char * s2,
  84.               int n);
  85.  
  86. /* Prototypes for functions defined in
  87. xmalloc.c
  88.  */
  89.  
  90. unsigned char * xmalloc(int size);
  91.  
  92. unsigned char * xrealloc(unsigned char * ptr,
  93.                          int size);
  94.  
  95. unsigned char * strsave(unsigned char * str);
  96.  
  97. /* Prototypes for functions defined in
  98. md5c.c
  99.  */
  100.  
  101. void MD5Init(struct { unsigned long state[4]; unsigned long count[2]; unsigned char buffer[64];  }  * );
  102.  
  103. void MD5Update(struct { unsigned long state[4]; unsigned long count[2]; unsigned char buffer[64];  }  * , unsigned char * , unsigned int );
  104.  
  105. void MD5Final(unsigned char * , struct { unsigned long state[4]; unsigned long count[2]; unsigned char buffer[64];  }  * );
  106.  
  107. /* Prototypes for functions defined in
  108. amigaunpk.c
  109.  */
  110.  
  111. extern int quiet;
  112.  
  113. extern long OldDir;
  114.  
  115. extern struct NetSupportLibrary * NetSupportBase;
  116.  
  117. void FreeSystem(void);
  118.  
  119. int main(int , unsigned char ** );
  120.  
  121. void warn(unsigned char * );
  122.  
  123. void chat(unsigned char * );
  124.  
  125. /* Prototypes for functions defined in
  126. decode.c
  127.  */
  128.  
  129. int handleMessage(struct __iobuf * infile,
  130.                   unsigned char * defaultContentType,
  131.                   int inAppleDouble,
  132.                   int extractText,
  133.                   struct boundary * boundaries);
  134.  
  135. void SkipWhitespace(unsigned char ** s);
  136.  
  137. unsigned char * ParseHeaders(struct __iobuf * infile,
  138.                              unsigned char ** subjectp,
  139.                              unsigned char ** contentTypep,
  140.                              enum encoding * contentEncodingp,
  141.  
  142.        unsigned char ** contentDispositionp,
  143.                              unsigned char ** contentMD5p,
  144.                              struct boundary * boundaries);
  145.  
  146. enum encoding parseEncoding(unsigned char * s);
  147.  
  148. unsigned char ** ParseContent(unsigned char ** headerp);
  149.  
  150. unsigned char * getParam(unsigned char ** cParams,
  151.                          unsigned char * key);
  152.  
  153. unsigned char * getDispositionFilename(unsigned char * disposition);
  154.  
  155. int handlePartial(struct __iobuf * infile,
  156.                   unsigned char * headers,
  157.                   unsigned char ** contentParams,
  158.                   int extractText,
  159.                   struct boundary * boundaries);
  160.  
  161. int ignoreMessage(struct __iobuf * infile,
  162.                   struct boundary * boundaries);
  163.  
  164. int handleMultipart(struct __iobuf * infile,
  165.                     unsigned char * contentType,
  166.                     unsigned char ** contentParams,
  167.                     int extractText,
  168.                     struct boundary * boundaries);
  169.  
  170. int handleText(struct __iobuf * infile,
  171.                enum encoding contentEncoding,
  172.                struct boundary * boundaries);
  173.  
  174. int saveToFile(struct __iobuf * infile,
  175.                int inAppleDouble,
  176.                unsigned char * contentType,
  177.                unsigned char ** contentParams,
  178.                enum encoding contentEncoding,
  179.                unsigned char *
  180. contentDisposition,
  181.                unsigned char * contentMD5,
  182.                struct boundary * boundaries);
  183.  
  184. /* Prototypes for functions defined in
  185. uudecode.c
  186.  */
  187.  
  188. int handleUuencode(struct __iobuf * infile,
  189.                    unsigned char * subject);
  190.  
  191. int saveUuFile(struct __iobuf * infile,
  192.                unsigned char * fname,
  193.                int part,
  194.                int nparts,
  195.                unsigned char * firstline);
  196.  
  197. int parseSubject(unsigned char * subject,
  198.                  unsigned char ** fnamep,
  199.                  int * partp,
  200.                  int * npartsp);
  201.  
  202. int uudecodefiles(unsigned char * dir,
  203.                   int nparts);
  204.  
  205. void uudecodeline(unsigned char * line,
  206.                  struct __iobuf * outfile);
  207.  
  208.